<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
    <AWSProjectType>Lambda</AWSProjectType>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
    <PackageReference Include="Amazon.Lambda.Serialization.Json" Version="2.1.0" />
    <% switch(props.triggerEventSourceMappings[0].functionTemplateType) {
         case 'dynamoDB':%>
    <PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.3.24" />
    <PackageReference Include="Amazon.Lambda.DynamoDBEvents" Version="2.1.1" />
    <%     break;
         case 'kinesis':%>
    <PackageReference Include="Amazon.Lambda.KinesisEvents" Version="2.0.0" />
    <%     break;
         default:
           console.log(`Unknown template type '${props.triggerEventSourceMappings[0].functionTemplateType}'`);
           break;
        } %>
  </ItemGroup>
</Project>
